home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_UMINNgopher.idb / usr / freeware / src / gopher_1.12 / Makefile.config.dist.z / Makefile.config.dist
Makefile  |  1997-09-09  |  6KB  |  204 lines

  1. #------------------------------------------------
  2. #  This is where most of the configuration parameters are defined
  3. #  also see conf.h
  4. #
  5.  
  6. #********************************************************************
  7. # $Author: drich $
  8. # $Revision: 1.1 $
  9. # $Date: 1995/10/03 04:07:24 $
  10. # $Source: /proj/freeware1.0/gopher1.12/src/RCS/Makefile.config.dist,v $
  11. # $State: Exp $
  12. #
  13. # Paul Lindner, University of Minnesota CIS.
  14. #
  15. # Copyright 1991, 1992 by the Regents of the University of Minnesota
  16. # see the file "Copyright" in the distribution for conditions of use.
  17. #********************************************************************
  18. # MODULE: Makefile.config.dist
  19. # Parameters for the gopher distribution
  20. #*********************************************************************
  21. # Revision History:
  22. # $Log: Makefile.config.dist,v $
  23. # Revision 1.1  1995/10/03  04:07:24  drich
  24. # gopher 1.2 check-in
  25. #
  26. # Revision 1.6  1993/01/19  04:52:22  lindner
  27. # Renamed Makefile.config to Makefile.config.dist
  28. #
  29. # Revision 1.5  1993/01/13  16:19:58  lindner
  30. # Changes for SVR4 (add -lnsl to libs line..)
  31. #
  32. # Revision 1.4  1992/12/28  21:45:48  lindner
  33. # Removed trailing slash on CLIENTLIB
  34. #
  35. # Revision 1.3  1992/12/21  20:38:05  lindner
  36. # Added warning about -DBIO (from dgg)
  37. #
  38. # Revision 1.2  1992/12/13  06:10:26  lindner
  39. # Fixed SVR4LIBS line (didn't need bsd stuff anymore) also removed HPLIBS
  40. #
  41. # Revision 1.1  1992/12/10  22:57:05  lindner
  42. # Initial revision
  43. #
  44. #
  45. #********************************************************************/
  46.  
  47.  
  48.  
  49.  
  50.  
  51. #------------------------------------------------
  52. # Your favorite C compiler
  53. #
  54. # Note that sun international users should use /usr/5bin/cc instead of cc
  55. #
  56.  
  57. CC = cc
  58.  
  59. #------------------------------------------------
  60. # Optimization level.
  61. #
  62.  
  63. #OPT=-g
  64. OPT=-O
  65.  
  66. #------------------------------------------------
  67. # System Selection,  note that you won't have to edit
  68. # unless you have compilation problems.
  69. #
  70. # Add -DUSG        for System V
  71. #     -DBSD        for BSD
  72. #     -DPOSIXWAIT  if you have waitpid() instead of wait3()
  73.  
  74. GSYSTYPE=
  75.  
  76. #------------------------------------------------
  77. # The ranlib command on your system.  A/UX (and probably other sysv's
  78. # should change this to "touch"
  79. #
  80.  
  81. RANLIB = ranlib
  82.  
  83. #------------------------------------------------
  84. # The install command on your system.  OSF/1 should change this
  85. # to installbsd
  86. #
  87. # SCO ODT systems should change this to bsdinst
  88. # IBM AIX systems should change this to /usr/ucb/install
  89. #
  90.  
  91. INSTALL = install
  92.  
  93. #-------------------------------------------------
  94. # Where shall we install stuff?
  95. #
  96. PREFIX          = /usr/local
  97. CLIENTDIR    = $(PREFIX)/bin
  98. CLIENTLIB       = $(PREFIX)/lib
  99. SERVERDIR    = $(PREFIX)/etc
  100. MAN1DIR        = $(PREFIX)/man/man1
  101. MAN8DIR        = $(PREFIX)/man/man8
  102.  
  103.  
  104. #-----------------------------------------------------------------
  105. # Optional server features.
  106. #
  107. # Add -DLOADRESTRICT if you want to restrict access based on load avg.
  108. #     (Note you'll need to add -lkvm in SERVERLIBS)  Note also that this has
  109. #     only been tested under SunOS 4.1.1
  110. #
  111. # Add -DBIO if you're using the biology portion of Don Gilbert's modified
  112. #     wais8b5 that supports boolean and phrase searching.
  113. #     PLEASE NOTE: the -DBIO option is NOT needed nor recommended for use
  114. #     of the boolean and phrase searching portion of this modified wais,
  115. #     just the symbol searching.  But, you must compile wais and gopher with
  116. #     the same option setting (-DBIO or NOT).
  117. #     The source can be gotten from:
  118. #
  119. #       ftp.bio.indiana.edu
  120. #
  121. # Add -DDL and define DLPATH and DLOBJS if you want to include support
  122. #      for Tim Cook's 'dl' databases You will also have to have a
  123. #      working copy the program with source code in the DLPATH
  124. #      directory. The files getdesc.o and enddesc.o must be there.
  125. #      Source for dl can be gotten from:
  126. #
  127. #       admin.viccol.edu.au
  128. #       pub/dl/describe-1.8.tar.Z  or higher...
  129. #
  130. SERVEROPTS    = #-DBIO #-DDL # -DLOADRESTRICT
  131. DLPATH        = /home/mudhoney/lindner/src/describe
  132. #DLOBJS        = $(DLPATH)/getdesc.o $(DLPATH)/enddesc.o
  133.  
  134.  
  135. #--------------------------------------------------
  136. # Libraries for clients and servers
  137. #    Ultrix needs -lcursesX instead of -lcurses
  138. #    UMAX needs -lresolv
  139. #
  140. #--------------------------------------------------
  141. # Libraries...  Uncomment out SEQLIBS  if compiling on sequent Dynix,
  142. #                  "       "  PTXLIBS  if compiling on sequent Dynix/ptx,
  143. #                  "       "  UMAXLIBS if compiling under UMAX,
  144. #                  "       "  SCOLIBS  if compiling under SCO Unix.
  145. #
  146. #UMAXLIBS    = -lresolv
  147. #LOADLIBS    = -lkvm
  148. #SEQLIBS        = -lseq
  149. #PTXLIBS        = -lseq -lsocket -linet -lnsl
  150. #SCOLIBS        = -lsocket
  151. #SVR4LIBS    = -lsocket -lnsl
  152.  
  153. OTHERLIBS    =  $(HPLIBS) $(UMAXLIBS) $(SEQLIBS) $(PTXLIBS) $(SCOLIBS) \
  154.            $(SVR4LIBS)
  155.  
  156. CLIENTLIBS     = -lcurses -ltermcap -lgopher $(OTHERLIBS)
  157. SERVERLIBS     = -lm -lgopher $(OTHERLIBS) $(LOADLIBS)
  158.  
  159.  
  160. #-----------------------------------------------------------------
  161. # If your hostname command returns the Fully Qualified Domain Name
  162. # (i.e. it looks like foo.bar.edu and not just foo) then make
  163. # the domain name a null string.  Otherwise put in the rest of
  164. # your domain name that `hostname` doesn't return.
  165.  
  166. DOMAIN        = .micro.umn.edu
  167.  
  168.  
  169. #-----------------------------------------------------------------
  170. # SERVERDIR is the default directory for gopherd.  It can be 
  171. # overridden on the command line
  172. #
  173. # SERVERPORT is the default port for gopherd.  It too can be
  174. # overridden on the command line.
  175.  
  176. SERVERDATA    = /home/mudhoney/gopher-data
  177. SERVERPORT    = 70
  178.  
  179.  
  180.  
  181. #-----------------------------------------------------------------
  182. # Compatibility defines
  183. #
  184. # If you don't have the strstr() function call then add -DNOSTRSTR
  185. #
  186. # Most of these are automatically defined via the built in compiler 
  187. # definitions.  Don't worry about them unless you have problems
  188. #
  189.  
  190. COMPAT = # -DNOSTRSTR # -DNO_STRDUP # -DNO_BZERO # -DNO_TMPNAM
  191.  
  192.  
  193. #-----------------------------------------------------------------
  194. # Stuff that follows shouldn't be changed
  195. #
  196.  
  197. OBJINCLUDES     = -I../object
  198. OTHERINCLUDES    = -I.. -I../ir -I../ui
  199. INCLUDES    = $(OBJINCLUDES) $(OTHERINCLUDES)
  200.  
  201. LDFLAGS        = -L../object
  202. SHELL        = /bin/sh
  203.